package com.sample.springbatch.model;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by yxy on 2017/5/6.
 */
public class User1 implements Serializable {

    private static final long serialVersionUID = -7367871287146067764L;

    private Integer id;
    @Column(name = "last_name",length = 64)
    private String lastName;
    @Column(name = "firstName", length = 64)
    private String firstName;
    @Column(name = "age")
    private Integer age;

    public User1() {
    }

    public User1(String lastName, String firstName) {
        this.lastName = lastName;
        this.firstName = firstName;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("User{");
        sb.append("id=").append(id);
        sb.append(", lastName='").append(lastName).append('\'');
        sb.append(", firstName='").append(firstName).append('\'');
        sb.append(", age=").append(age);
        sb.append('}');
        return sb.toString();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

}
